/* Swiper */

.swiper__block {
  width: 100%;
  margin-right: 0;
  margin-top: 24px;
  border-top: 1px solid #D9FFF5;
  padding-left: 16px;
  padding-right: 16x;

  & .swiper {
    position: relative;
    width: 100%;

    &::after {
      content: "";
      position: absolute;
      right: 0;
      top: 12px;
      z-index: 10;
      width: 24px;
      height: 81px;
      background: linear-gradient(270deg, $low-white 16.84%, $black 100%);
      z-index: 3;
    }

    &-wrapper {
      padding-top: 16px;
      padding-bottom: 16px;
    }

    &__title {
      margin: 0;
      padding: 0;
      background: linear-gradient(90deg, $low-white, $white);

      &--text {
        padding: 16px 0 16px 0;
        margin: 0;
        font-size: 1rem;
        font-weight: normal;
        line-height: 1.71rem;
        text-transform: uppercase;
        color: $grey;
      }
    }

    &__card {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px;
      margin-right: 0;
      max-width: 240px;
      max-height: 72px;
      vertical-align: middle;
      justify-content: baseline;
      background: $white;
      border: 1px solid $light-grey;
      border-radius: 6px;
      cursor: grab;
      transition: border 0.3s;

      &--lower-block{
        align-items: unset;
      }

      &:nth-child(n) {
        width: 80%;
      }

      &:hover {
        border: 1px solid $grey;
        border-radius: 6px;
        cursor: auto;
      }
    }
    &__card-logo {
      padding: 20px auto 20px 16px;

      & img {
        max-width: 116px;
        max-height: 44px;
      }
    }

    &__card-button {
      position: relative;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-color: inherit;
      width: 40px;
      height: 40px;
      margin-right: 0;
      background: transparent;
      border: 2px solid $pink;
      border-radius: 50%;
      cursor: pointer;
      transition: background-color 0.3s, border-color 0.3s, border, 0.3s;

      &::after {
        content: "";
        position: absolute;
        top: 14px;
        right: 15px;
        transform: rotate(45deg);
        width: 8px;
        height: 8px;
        border-top: 2px solid $pink;
        border-right: 2px solid $pink;
        border-radius: 1px;
        transition: border-color 0.3s;
      }

      &:hover {
        background-color: #ff3e79;
        border-color: #ff3e79;

        &::after {
          border-color: white;
        }
      }

      &:active {
        background-color: rgba(16, 16, 16, 0.8);
        border-color: rgba(16, 16, 16, 0.8);
        transform: scale(1);
      }
    }
    &__button {
      &--read-more {
        display: none;
      }
    }

    &-pagination {
      &-bullet {
        background: $pagination-bullet;
        opacity: 0.8;
      }
      &-bullet-active {
        background-color: $not-active-grey;
      }
    }
  }
}

@media screen and (min-width: 768px) and (max-width: 1119.99px) {
  .swiper__block {
    padding-left: 24px;

    & .swiper {
      &::after {
        display: none;
      }

      &-wrapper {
        padding-top: 24px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(224px, 240px));
        row-gap: 24px;
        justify-content: space-between;

        &--hide-content {
          max-height: 168px;
          overflow: hidden;
        }

        &--max-height {
          max-height: 100%;
        }
      }

      &__card {
        cursor: auto;
        margin-right: -16px;

        &:nth-child(n) {
          width: 100%;
        }
      }

      &__pagination {
        display: none;
      }

      &__button {
        &--read-more {
          display: block;
        }
      }
    }
  }
}

@media screen and (min-width: 1120px) {
  .swiper__block {
    padding-left: 32px;

    & .swiper {
      overflow: hidden;

      &-wrapper {
        padding-top: 24px;
        display: grid;

        grid-template-columns: repeat(auto-fit, minmax(224px, 240px));
        gap: 32px;
        justify-content: space-between;
        margin-bottom: 10px;

        &--hide-content {
          max-height: 168px;
          overflow: hidden;
        }
        &--max-height {
          max-height: 100%;
        }
      }
      &::after {
        display: none;
      }

      &__card {
        height: 72px;

        cursor: auto;

        &:nth-child(n) {
          width: 100%;
        }
      }
      &__button {
        &--read-more {
          display: block;
          margin-bottom: 32px;
        }
      }
      &__pagination {
        display: none;
      }
    }
  }
}
